package org.dawning.shop.common.commands.product;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.axonframework.commandhandling.TargetAggregateIdentifier;
import org.dawning.shop.common.domain.product.Product;
import org.dawning.shop.common.domain.product.ProductId;

/**
 * Created by miou on 2017/6/13 0013.
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UpdateProductCommand {

    @TargetAggregateIdentifier
    private ProductId productId;
    private Product product;
}
